home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Programming
/
AmigaE
/
Src
/
OOmodules
/
sort
/
numbers
/
twoNumbers.e
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-08-06
|
440 b
|
27 lines
/*
twoNumbers
Take two objects that consist of numbers, e.g. Complex and Fraction.
Those exist of two numbers, only the methods are a bit different, so why
don't make a class of it and derive those two from it? Well, here you are.
Objects to derive from this:
Fraction
Complex
Line?
*/
OPT MODULE
OPT EXPORT
MODULE 'oomodules/sort/numbers'
OBJECT twoNumbers OF number
PRIVATE
value1:PTR TO number
value2:PTR TO number
ENDOBJECT